package com.strive.db.properties;

import lombok.Data;
import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * @description:
 * @author: bingcun.chen
 * @Date: 2022/2/20 14:02
 * @Version 1.0
 */
@ConfigurationProperties(prefix = "strive.mybatis-plus.auto-fill")
@Data
@RefreshScope
public class MybatisPlusAutoFillProperties {
    /**
     * 是否启用自动填充字段
     */
    private Boolean enable = true;
    /**
     * 是否开启了插入填充
     */
    private Boolean enableInsertFill = true;
    /**
     * 是否开启了更新填充
     */
    private Boolean enableUpdateFill = true;
    /**
     * 创建时间字段名
     */
    private String createTimeFiled = "createTime";
    /**
     * 更新时间字段名
     */
    private String updateTimeFiled = "updateTime";


}
